package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.JavaBean.plus.Emp;
import org.example.mapper.EmpMapper;
import org.example.service.EmpService;
import org.example.util.JsonResult;
import org.example.util.ResultTool;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther:Liu
 * @Testname:EmpServiceImpl
 * @Date:2025/8/4 9:38
 */
@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements EmpService {
    @Override
    public JsonResult findAll() {
        List<Emp> all = getBaseMapper().findAll();
        return ResultTool.success(all);
    }
}
